<style>
    /*.layui-form-select.my-select .layui-input {
        width: 380px;
    }*/
</style>

<div class="layui-form" lay-filter="layuiadmin-form-productadmin-handleRemark" style="padding: 20px 0 0 0;">
    <script type="text/html" template>
        <input type="hidden" name="id" value="{{ d.params.id || '' }}" />
    </script>
    <div class="layui-form-item">
        <label class="layui-form-label">商品ID</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
                <input type="text" name="productId" id="ID-input-product-handleRemark-productId" value="{{ d.params.productId || '' }}" lay-verify="" placeholder="" autocomplete="off" class="layui-input" readonly style="width:380px;" />
            </script>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">商品名称</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
                <input type="text" name="productName" id="ID-input-product-handleRemark-productName" value="{{ d.params.productName || '' }}" lay-verify="" placeholder="" autocomplete="off" class="layui-input" readonly style="width:380px;" />
            </script>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">处理状态</label>
        <div class="layui-input-inline" style="width:380px !important;">
            <script type="text/html" template>
                <select name="handleStatus" id="ID-select-product-handleRemark-handleStatus" lay-verify="required">
                    <option value="">不限</option>
                    <option value="1" {{= d.params.handleStatus=="1"?'selected':'' }}>未处理</option>
                    <option value="2" {{= d.params.handleStatus=="2"?'selected':'' }}>已处理</option>
                </select>
            </script>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">备注</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
                <textarea placeholder="请输入内容" class="layui-textarea" name="remark" id="ID-input-product-handleRemark-remark" style="width:380px;">{{ d.params.remark || '' }}</textarea>
            </script>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"></label>
        <div class="layui-input-inline">
            <button class="layui-btn layui-btn-primary layui-border" lay-on="remarkformcancel">取消</button>
            <button type="submit" class="layui-btn" lay-submit lay-filter="LAY-product-remarkform-submit">确定</button>
        </div>
    </div>
</div>

<script>
    layui.use(['admin', 'form', 'upload'], function () {
        var $ = layui.$
            , form = layui.form
            , upload = layui.upload;

        //上传头像
        upload.render({
            elem: '#layuiadmin-upload-useradmin'
            , url: './res/json/upload/demo.js'
            , accept: 'images'
            , method: 'get'
            , acceptMime: 'image/*'
            , done: function (res) {
                $(this.item).prev("div").children("input").val(res.data.src)
            }
        });
    })
</script>